package com.tbs.easyhomemoneyserver.model.dto

import com.tbs.easyhomemoneyserver.DO.SysUser
import com.tbs.easyhomemoneyserver.utils.DtoUtils
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.io.Serializable

@ApiModel
data class LoginInfoDTO(@ApiModelProperty("登录信息id") var loginId: Long, private val u: SysUser) : Serializable {
    @ApiModelProperty("登录用户信息")
    var userInfo: UserDTO = DtoUtils.convert(u, UserDTO::class.java)

    companion object {
        private val serialVersionUID = -986028794879391364L
    }
}
